package com.biz.primus.ms.member.trans;

import com.biz.primus.model.member.vo.MemberAddressLabelVo;
import com.biz.primus.ms.member.dao.ro.MemberAddressLabelRo;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * ro转vo
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class MemberAddressLabelRoToMemberAddressLabelVo implements Function<MemberAddressLabelRo, MemberAddressLabelVo>
{
    @Override
    public MemberAddressLabelVo apply(MemberAddressLabelRo ro) {
        MemberAddressLabelVo vo = new MemberAddressLabelVo();
        if (ro != null) {
            BeanUtils.copyProperties(ro, vo);
        }
        return vo;
    }
}
